1_领航者ZYNQ之FPGA开发指南_V1.2.1
目录内容简介 .............................................................................. 9前 言 .............................................................................. 10第一篇 硬件篇 ................................................................... 11ZYNQ简介 ................................................................. 12ZYNQ简介 ..................................................................... 13FPGA简介 ..................................................................... 15ZYNQ PL简介 .................................................................. 20ZYNQ PS简介 .................................................................. 26实验平台简介 ............................................................. 31领航者ZYNQ开发板资源初探 ..................................................... 32领航者开发板底板资源 ................................................... 32领航者开发板核心板资源 ................................................. 34领航者ZYNQ开发板资源说明 ..................................................... 36硬件资源说明 ........................................................... 36软件资源说明 ........................................................... 42硬件资源详解 ............................................................. 45领航者ZYNQ的IO分配 ........................................................... 46PL端的IO分配 ........................................................... 46PS端的IO分配 ........................................................... 51开发板底板原理图详解 ......................................................... 56底板电源 ............................................................... 56ZYNQ 启动模式 .......................................................... 59有源蜂鸣器 ............................................................. 59PL LED ................................................................. 60PS LED ................................................................. 60PL按键 ................................................................. 61PS按键 ................................................................. 61电容触摸按键 ........................................................... 6214-Pin JTAG接口 ........................................................ 63USB串口 ............................................................... 63RS232 接口 ............................................................ 64RS485 接口 ............................................................ 65RGB LCD 模块接口....................................................... 66XADC接口 .............................................................. 67OLED/摄像头模块接口 ................................................... 68EEPROM ................................................................ 68实时时钟 .............................................................. 69ATK模块接口............................................................ 70I2S音频编解码 ......................................................... 71原子哥在线教学:www.yuanzige.com 论坛:www.openedv.com4领航者 ZYNQ 之 FPGA 开发指南HDMI接口 .............................................................. 72PL端千兆以太网接口(RJ45)............................................. 74USB 2.0接口 ........................................................... 76Micro SD卡接口 ........................................................ 79CAN接口 ............................................................... 80IO扩展口 .............................................................. 81开发板核心板原理图详解 ....................................................... 82核心板电源 ............................................................. 82ZYNQ主控芯片 ........................................................... 85DDR3 SDRAM存储器 ....................................................... 886-Pin JTAG 接口......................................................... 91PS复位按键 ............................................................. 92PL LED ................................................................. 92PS LED ................................................................. 93PL时钟输入 ............................................................. 93PS时钟输入 ............................................................. 93PL配置状态指示灯 ...................................................... 94PS端千兆以太网 ........................................................ 94QSPI FLASH ............................................................ 96eMMC .................................................................. 97开发板使用注意事项 ........................................................... 98ZYNQ的学习方法 ............................................................... 99第二篇 软件篇 .................................................................. 101Vivado软件的安装和使用 .................................................. 102Vivado软件的安装 ............................................................ 103Vivado软件的使用 ............................................................ 112新建工程 .............................................................. 113设计输入 .............................................................. 121分析与综合 ............................................................ 127约束输入 .............................................................. 131设计实现 .............................................................. 134下载比特流 ............................................................ 136在线逻辑分析仪的使用 ........................................................ 141HDL实例化调试探针流程.................................................. 142Hardware Manager中观察调试信号......................................... 148网表插入调试探针流程 .................................................. 153在Vivado中进行功能仿真 ...................................................... 162第三篇 语法篇 .................................................................. 178Verilog HDL语法 ......................................................... 179Verilog概述 ................................................................. 180Verilog简介 ........................................................... 180原子哥在线教学:www.yuanzige.com 论坛:www.openedv.com5领航者 ZYNQ 之 FPGA 开发指南为什么需要Verilog ..................................................... 180Verilog和VHDL区别 ..................................................... 180Verilog和C的区别 ...................................................... 181Verilog基础知识 ............................................................. 181Verilog的逻辑值 ....................................................... 181Verilog的标识符 ....................................................... 182Verilog的数字进制格式.................................................. 182Verilog的数据类型 ..................................................... 182Verilog的运算符 ....................................................... 183Verilog程序框架 ............................................................. 186注释 .................................................................. 186关键字 ................................................................ 186程序框架 .............................................................. 187Verilog高级知识点 ........................................................... 190阻塞赋值(Blocking)................................................... 190非阻塞赋值(Non-Blocking)............................................. 191assign和always区别 .................................................... 193带时钟和不带时钟的always............................................... 193什么是latch ........................................................... 194状态机 ................................................................ 195模块化设计 ............................................................ 199Verilog编程规范 ............................................................. 203编程规范重要性 ........................................................ 203工程组织形式 .......................................................... 204文件头声明 ............................................................ 204输入输出定义 .......................................................... 205parameter定义 ......................................................... 205wire/reg定义 .......................................................... 205信号命名 .............................................................. 206always块描述方式 ...................................................... 206assign块描述方式 ...................................................... 207空格和TAB ............................................................ 207注释 ................................................................. 207模块例化 ............................................................. 208其他注意事项 ......................................................... 208第四篇 实战篇 .................................................................. 210LED灯闪烁实验 ........................................................... 211LED灯简介 ................................................................... 212实验任务 .................................................................... 212硬件设计 .................................................................... 212程序设计 .................................................................... 213原子哥在线教学:www.yuanzige.com 论坛:www.openedv.com6领航者 ZYNQ 之 FPGA 开发指南下载验证 .................................................................... 216按键控制LED闪烁实验 ..................................................... 219按键简介 .................................................................... 220实验任务 .................................................................... 220硬件设计 .................................................................... 220程序设计 .................................................................... 221下载验证 .................................................................... 223按键控制蜂鸣器实验 ...................................................... 224蜂鸣器简介 .................................................................. 225实验任务 .................................................................... 225硬件设计 .................................................................... 225程序设计 .................................................................... 226下载验证 .................................................................... 230触摸按键控制LED灯实验 ................................................... 231触摸按键简介 ................................................................ 232实验任务 .................................................................... 232硬件设计 .................................................................... 232程序设计 .................................................................... 233下载验证 .................................................................... 236呼吸灯实验 .............................................................. 238呼吸灯简介 ................................................................. 239实验任务 ................................................................... 239硬件设计 ................................................................... 239程序设计 ................................................................... 240下载验证 ................................................................... 242IP核之MMCM/PLL实验 ...................................................... 243MMCM/PLL IP核简介 .......................................................... 244实验任务 ................................................................... 247硬件设计 ................................................................... 247程序设计 ................................................................... 248下载验证 ................................................................... 255IP核之RAM实验 ........................................................... 257RAM IP核简介 ............................................................... 258实验任务 ................................................................... 259硬件设计 ................................................................... 259程序设计 ................................................................... 259下载验证 ................................................................... 267IP核之FIFO实验 .......................................................... 269FIFO IP核简介 .............................................................. 270实验任务 ................................................................... 271硬件设计 ................................................................... 271原子哥在线教学:www.yuanzige.com 论坛:www.openedv.com7领航者 ZYNQ 之 FPGA 开发指南程序设计 ................................................................... 271下载验证 ................................................................... 284UART串口通信实验 ........................................................ 286UART串口简介 ............................................................... 287实验任务 ................................................................... 288硬件设计 ................................................................... 288程序设计 ................................................................... 289下载验证 ................................................................... 301RS485串口通信实验 ....................................................... 304RS-485简介 ................................................................. 305实验任务 ................................................................... 305硬件设计 ................................................................... 306程序设计 ................................................................... 307下载验证 ................................................................... 313RGB TFT-LCD彩条显示实验.................................................. 315RGB TFT-LCD简介 ............................................................ 316实验任务 ................................................................... 322硬件设计 ................................................................... 322程序设计 ................................................................... 325下载验证 ................................................................... 335RGB TFT-LCD字符和图片显示实验............................................ 337RGB TFT-LCD简介 ............................................................ 338实验任务 ................................................................... 338硬件设计 ................................................................... 338程序设计 ................................................................... 338下载验证 ................................................................... 350HDMI彩条显示实验 ........................................................ 351简介 ....................................................................... 352实验任务 ................................................................... 355硬件设计 ................................................................... 355程序设计 ................................................................... 357下载验证 ................................................................... 374HDMI方块移动实验 ........................................................ 376HDMI简介 ................................................................... 377实验任务 ................................................................... 377硬件设计 ................................................................... 377程序设计 ................................................................... 377下载验证 ................................................................... 381EEPROM读写测试实验 ...................................................... 383EEPROM简介 ................................................................. 384实验任务 ................................................................... 389原子哥在线教学:www.yuanzige.com 论坛:www.openedv.com8领航者 ZYNQ 之 FPGA 开发指南硬件设计 ................................................................... 389程序设计 ................................................................... 391下载验证 ................................................................... 402RTC实时时钟LCD显示实验............................................... 403PCF8563简介 ................................................................ 404实验任务 ................................................................... 406硬件设计 ................................................................... 407程序设计 ................................................................... 408下载验证 ................................................................... 424频率计实验 .......................................................... 425等精度频率计简介 ........................................................... 426实验任务 ................................................................... 427硬件设计 ................................................................... 427程序设计 ................................................................... 428下载验证 ................................................................... 439高速AD/DA实验 ....................................................... 441高速AD/DA简介 .............................................................. 442实验任务 ................................................................... 445硬件设计 ................................................................... 445程序设计 ................................................................... 448下载验证 ................................................................... 456MDIO接口读写测试实验................................................. 459简介 ....................................................................... 460实验任务 ................................................................... 466硬件设计 ................................................................... 466程序设计 ................................................................... 468下载验证 ................................................................... 478以太网ARP测试实验 ................................................... 481简介 ....................................................................... 482实验任务 ................................................................... 494硬件设计 ................................................................... 494程序设计 ................................................................... 496下载验证 ................................................................... 518以太网UDP测试实验 ................................................... 525简介 ....................................................................... 526实验任务 ................................................................... 530硬件设计 ................................................................... 530程序设计 ................................................................... 530下载验证 ................................................................... 540
评论